package com.hitqz.robot.api.business.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author xupkun
 * @date 2024/8/6
 */
@Schema(description = "警告统计")
@Data
public class RobotWarningStatisticsVo {
    @Schema(description = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date date;
    @Schema(description = "不同类型数目列表")
    private List<WarningNumVo> warningDayNumList;
    @Schema(description = "类型数目列表")
    @Data
    public static class WarningNumVo {
        @Schema(description = "类型")
        private String type;
        @Schema(description = "数目")
        private Integer number;
        @Schema(description = "百分比")
        private String percent;
    }

}
